import 'package:drift/drift.dart';

/// 登录用户信息
class ActTb extends Table {
  TextColumn get id => text()();

  ///服务端用户ID
  TextColumn get serviceUserId => text().nullable()();

  ///昵称
  TextColumn get nickname => text().nullable()();

  ///头像
  TextColumn get avatar => text().nullable()();

  ///未读数量
  IntColumn get unReadNum => integer().clientDefault(() => 0)();

  @override
  Set<Column> get primaryKey => {id};
}
